﻿using System;
using System.Collections.Generic;
using System.Text;
using Best.SmartCms.Dto.Common;
using Best.SmartCms.Dto.Request;

namespace Best.SmartCms.Dto
{
    /// <summary>
    /// 
    /// </summary>
    public class NewsDto
    {
        /// <summary>
        /// 主键
        /// </summary>
        public long Id { get; set; }
        /// <summary>
        /// 频道Id
        /// </summary>
        public long ChannelId { get; set; }
        /// <summary>
        /// 频道
        /// </summary>
        public string ChannelName { get; set; }

        /// <summary>
        /// 显示方式
        /// </summary>
        public string ControllerName { get; set; }
        /// <summary>
        /// 主题
        /// </summary>
        public string Title { get; set; }
        /// <summary>
        /// 摘要
        /// </summary>
        public string Summer { get; set; }
        /// <summary>
        /// 关键字
        /// </summary>
        public string Keywords { get; set; }
        /// <summary>
        /// 作者
        /// </summary>
        public string Author { get; set; }
        /// <summary>
        /// 内容
        /// </summary>
        public string Content { get; set; }
        /// <summary>
        /// 预读数量
        /// </summary>
        public int? ReadNum { get; set; }

        /// <summary>
        ///  图片地址
        /// </summary>
        public string ImageUrl { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreatedTime { get; set; }

    }

	/// <summary>
    /// 编辑对象
    /// </summary>
	public class NewsEditDto
    {
        /// <summary>
        /// 主键
        /// </summary>
        public long Id { get; set; }
        /// <summary>
        /// 频道Id
        /// </summary>
        public long ChannelId { get; set; }
        /// <summary>
        /// 主题
        /// </summary>
        public string Title { get; set; }
        /// <summary>
        /// 摘要
        /// </summary>
        public string Summer { get; set; }
        /// <summary>
        /// 关键字
        /// </summary>
        public string Keywords { get; set; }
        /// <summary>
        /// 作者
        /// </summary>
        public string Author { get; set; }
        /// <summary>
        /// 内容
        /// </summary>
        public string Content { get; set; }
        /// <summary>
        /// 预读数量
        /// </summary>
        public int? ReadNum { get; set; }
      
        /// <summary>
        /// 图片
        /// </summary>
        public List<UploadFileDto> ImageList { get; set; }
    }

    /// <summary>
    /// 查询条件
    /// </summary>
    public class NewsListQueryDto: PagedQueryRequest
    {
        /// <summary>
        /// 频道Id
        /// </summary>
        public long? ChannelId { get; set; }

    }

    /// <summary>
    /// 列表对象
    /// </summary>
	public class NewsListDto
    {
        /// <summary>
        /// 主键
        /// </summary>
        public long Id { get; set; }
        /// <summary>
        /// 频道Id
        /// </summary>
        public long ChannelId { get; set; }

        /// <summary>
        /// 频道
        /// </summary>
        public string ChannelName { get; set; }

        /// <summary>
        /// 显示方式
        /// </summary>
        public string ControllerName { get; set; }

        /// <summary>
        /// 主题
        /// </summary>
        public string Title { get; set; }
        /// <summary>
        /// 作者
        /// </summary>
        public string Author { get; set; }
        /// <summary>
        /// 预读数量
        /// </summary>
        public int? ReadNum { get; set; }



        /// <summary>
        /// 摘要
        /// </summary>
        public string Summer { get; set; }

        /// <summary>
        ///  图片地址
        /// </summary>
        public string ImageUrl { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreatedTime { get; set; }
      
    }
}
